<?php

class Currencies extends HTech_Db_Table
{
    protected $_name    = 'view_currencies';
    protected $_primary = 'CurrencyId';
    
    protected function _setGridMetadata()
    {
        $this->_gridMetadata['title'] = $this->translate("Currencies");
        $this->_gridMetadata['onClick'] = 'admin.currency.add';
        $this->_gridMetadata['headers'] = array
            (
                array('CurrencyId',        50, $this->translate("Id"),             'Number'),
                array('Code',              70, $this->translate("Code"),           'String'),
                array('Symbol',            70, $this->translate("Symbol"),         'String'),
                array('Currency',         200, $this->translate("Currency"),       'String'),
                array('LastEditDate',     150, $this->translate("Last edit date"), 'DateTime', 'Date'),
                array('LastEditFullName', 200, $this->translate("Last edit user"), 'String')
            );
        return $this;
    }
}